{include file="header.tpl"}

	<h1>{if $entry.var_name}Edit{else}Add{/if} Registry Entry</h1>

   {include file="admin_sidebar.tpl"}

   <div id="content">
   
      {include file="flashes.tpl"}

   	<form id="frm_registry" action="" method="post">
   
   		<fieldset class="panel">
   			
   			<div>
   			{if $entry.var_name}
               <label>Name:</label>
   				<p class="readonly">{$entry.var_name}</p>
   			{else}
   				<label for="var_name">Name:</label>
        			<input id="var_name" name="var_name" type="text" value="{$entry.var_name}" {if $entry.var_name}{$spf.readonly} class="readonly"{/if} />
        			{if $entry.errors.var_name}<p class="error">{$entry.errors.var_name}</p>{/if}
        		{/if}
   	 		</div>
   			
   			<div>
   				<label for="var_value">Value:</label>
        			<input id="var_value" name="var_value" type="text" value="{$entry.var_value}" />
        			{if $entry.errors.var_value}<p class="error">{$entry.errors.var_value}</p>{/if}
   	 		</div>
   			
   		</fieldset>
   		
   		<div class="button_bar">
   			<button type="submit" name="submit_frm_registry" value="1">Submit</button>or <a href="{$spf.base_url}/registry/index">Cancel</a>
   		</div>
   		
   	</form>
   
   </div>
   
{include file="footer.tpl"}
